package cn.wolfcode.orderServer.feign.facback;

import cn.wolfcode.orderServer.feign.ProductFeignApi;
import cn.wolfcode.productServer.domain.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignFallBack implements ProductFeignApi {
    @Override
    public Product get(Long id) {
        Product product = new Product();
        product.setPname("默认商品名称");
        product.setPprice(20.0);
        product.setPid(1L);
        return product;
    }
}
